<div class="admin-content">
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">优惠券</strong> :
            <small>添加优惠券</small>
        </div>
    </div>
    <form class="am-form" name="userForm" ng-submit="add(upontemplateall)" novalidate>
        <!--<div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                模板id
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder='系统自动生成' type="text" class="am-input-sm" ng-model="user.name" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>-->
        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                优惠金额
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input type="text" class="am-input-sm" ng-model="upontemplateall.money" name ="upontemplateall.money" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>
        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                优惠开始时间
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder="{{start_time_show}}" type="text" id="datetimepicker1" class="am-input-sm" ng-model="upontemplateall.starttime" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>
        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                优惠结束时间
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder="请填写结束时间"  type="text" id="datetimepicker" class="am-input-sm" ng-model="upontemplateall.terminationtime" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>
        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                优惠券数量
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input type="text" class="am-input-sm" ng-model="upontemplateall.quanity" name ="user.price" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                优惠条件
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <span style="color: #009cda">金额满</span><input type="text" class="am-input-sm" ng-model="upontemplateall.fullcut" placeholder="若无请填写0">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                优惠店铺
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <select  type="text" class="am-input-sm" ng-model="upontemplateall.userrange" placeholder="本店专用请填写0   ">
                    <option value="false">本店专属</option>
                    <option value="true">平台通用</option>
                </select>
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>
       <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                是否可叠加优惠
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                    <select ng-change="tppp()" type="text" class="am-input-sm" ng-model="upontemplateall.orfial" placeholder="默认填0为不可叠加">
                        <option value="false" selected="selected">不可叠加优惠</option>
                        <option value="true">可叠加优惠</option>
                    </select>
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>
        </br>
        <div class="am-form-group">
            <div class="am-u-sm-10 am-u-sm-offset-2">
                <button type="submit" style="width: 100px" ng-disabled="userForm.$invalid" class="am-btn am-btn-primary">添加
                </button>
            </div>
        </div>
    </form>
    </br>
    

</div>